
import zhreq from "@/api/axios-agr-social";
export default {
  queryPageByCondition(params) {
    return zhreq.post("/system/role/queryPageByCondition", params);
  },
  queryByCondition(params) {
    return zhreq.post("/system/role/queryByCondition", params);
  },
  add(params) {
    return zhreq.post("/system/role/add", params);
  },
  edit(params) {
    return zhreq.request('put', "/system/role/edit", params);
  },
  del(id) {
    return zhreq.request('delete', `/system/role/del?id=${id}`);
  },
  addRoles(params) {
    return zhreq.post("/system/role/addRoles", params);
  },
  updateStatus(params) {
    return zhreq.post("/system/role/updateStatus", params);
  },
};
